Fix bug #15575 with crashes in TTY menus.
authorEli Zaretskii <eliz@gnu.org>
Fri, 11 Oct 2013 11:01:48 +0000 (14:01 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 11 Oct 2013 11:01:48 +0000 (14:01 +0300)
commit8a6c8b50c0ea91b3d2ac5461aaf54708a220e61f
tree35743943f10a8ccea75c003dc8c9759705bd9fa6
parent95995c692ff2f782b50e9a2de87493069e1b65ea
Fix bug #15575 with crashes in TTY menus.

 src/xdisp.c (display_tty_menu_item): Make sure we never write beyond
 the end of the frame's glyph matrix.
 src/term.c (tty_menu_display): Don't move cursor while overwriting
 frame's glyphs with menu items.  Limit the number of items
 displayed to what can be shown on the available screen lines,
 excluding the echo area.
 (tty_menu_activate): Limit the Y coordinate allowed by
 read_menu_input to the last screen line used for menu display.
src/ChangeLog
src/term.c
src/xdisp.c